package com.xinzhi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分类关联表
 * </p>
 *
 * @author laohan
 * @since 2024-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CategoryRelations对象", description="分类关联表")
public class CategoryRelations implements Serializable {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "绑定的目标id，可能为product或者article等可绑定分类的ID，")
    @TableId(value = "target_id", type = IdType.ID_WORKER_STR)
    private Integer targetId;

    @ApiModelProperty(value = "分类id")
    private Integer categoryId;

    @ApiModelProperty(value = "分类类型, 同categories表中type字段")
    private String type;

    private Date createdAt;

    private Date updatedAt;


}
